<div class="page-content-wrapper">
		<div class="page-content">
			<div class="row">
				<div class="col-md-12">
					<!-- BEGIN PAGE TITLE & BREADCRUMB-->
					<h3 class="page-title">
					Slider Management
					</h3>
					<ul class="page-breadcrumb breadcrumb">
						<li>
							<i class="fa fa-home"></i>
							<a href="<?php echo base_url();?>admin/dashboard">Dashboard</a>
							<i class="fa fa-angle-right"></i>
						</li>
						<li>
							<a href="javascript:void(0);">Slider Management</a>
						</li>
					</ul>
				</div>
			</div>

			<div class="row">
				<div class="col-md-12">
					<div class="tabbable tabbable-custom boxless tabbable-reversed">						
						<div class="tab-content">
							<div class="tab-pane active" id="tab_0">
								<div class="portlet box green">
									<div class="portlet-title">
										<div class="caption">
											<i class="fa fa-gift"></i>Edit/Update Slider Image
										</div>
									</div>
									<div class="portlet-body form">
										<form action="<?php echo base_url();?>admin/edit_slider_images" method='POST' class="form-horizontal" enctype='multipart/form-data'>
											<div class="form-body">
												<div class="form-group">
													<label class="col-md-3 control-label">ID</label>
													<div class="col-md-4">
														<input type="text" class="form-control" value="<?php echo $slider_data['id']; ?>" disabled>
													</div>
												</div>
												
												<div class="form-group">
													<label class="col-md-3 control-label">Select/Update Image</label>
													<div class="col-md-4">
														<div class="fileinput fileinput-new" data-provides="fileinput">
												  		<div class="fileinput-preview thumbnail" data-trigger="fileinput" style="width: 200px; height: 150px;"><img src="<?php echo base_url();?>resources/images/slider_images/<?php echo $slider_data['image_name']?>"></div>
												  		<div>
												    		<span class="btn btn-default btn-file"><span class="fileinput-new">Select image</span><span class="fileinput-exists">Change</span><input type="file" name="files"></span>
												    		<a href="#" class="btn btn-default fileinput-exists" data-dismiss="fileinput">Remove</a>
												  		</div>
												  	</div>
													</div>
												</div>
												
												<div class="form-group">
													<label class="col-md-3 control-label">Is Active</label>
													<div class="col-md-4">
														<div class="input-icon">
															<input type="checkbox" name='is_active' <?php if($slider_data['is_active'] == 1) { ?> checked='checked' <?php } ?> value='1'>
														</div>
													</div>
												</div>

												<div class="form-group">
													<label class="col-md-3 control-label">Content</label>
													<div class="col-md-4">
														<div class="input-icon right">
															<textarea class="form-control" rows='3' name='slider_content'><?php echo $slider_data['slider_content']; ?></textarea>
														</div>
													</div>
												</div>												
											</div>
											<div class="form-actions fluid">
												<div class="col-md-offset-3 col-md-9">
													<input type='hidden' value='<?php echo $this->uri->segment(3);?>' name='id'>
													<button type="submit" class="btn blue">Submit</button>
													<button type="button" onclick='javascript:history.go(-1);' class="btn default">Back</button>
												</div>
											</div>
										</form>
										<!-- END FORM-->
									</div>
								</div>

								<script>
								$(document).ready(function(){
									var flag = '<?php echo $slider_data['is_active']; ?>';
									if(flag == 1)
									{
										$('.checkbox').prop('checked',true);
									}else{
										$('.checkbox').prop('checked',false);

									}
								})
								</script>